系统问题,高手进。。~~~~`

来源:百度知道 编辑:UC知道 时间:2024/09/21 13:43:03
今天偶然知道用DOS清楚电脑系统垃圾文件,
@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"

都是一些临时文件,对系统没有任何影响,dll、sys、exe文件就需要注意了。

用这个啊,
最可能出问题的就是
*.*那几行

但那几个文件夹基本上是回收站、垃圾文件夹等,你能把文件存在这些地方吗??

我建议你用超级兔子删垃圾
删得准,也删得全

%systemdrive%是指你当前的系统盘,%windir%\系统当前的安装目录.%userprofile%是当前用户的用户文件的存放路径.这下知道上面的程序是什么意思了吧.

del /f /s /q %systemdrive%\*.log